import request from "../utils/request";

/**
 *
 * @param {查询能耗分析数据} params
 * @returns
 */
export function getEnergyAnalysis(params) {
    return request({
        url: "/meterDaily/getMeterDaily",
        method: "post",
        params,
    });
}

/**
 *
 * @param {查询能耗} params
 * @returns
 */
export function getEnergyData(params) {
    return request({
        url: "/meter/listMeter",
        method: "post",
        params,
        headers: { showLoading: true },
    });
}

/**
 *
 * @param {添加能耗} params
 * @returns
 */
export function addEnergy(params) {
    return request({
        url: "/meter/addMeter",
        method: "post",
        params,
    });
}

/**
 *
 * @param {编辑能耗} params
 * @returns
 */
export function editEnergy(params) {
    return request({
        url: "/meter/updateMeter",
        method: "post",
        params,
    });
}

/**
 *
 * @param {删除能耗} params
 * @returns
 */
export function delEnergy(params) {
    return request({
        url: "/meter/delMeter",
        method: "post",
        params,
    });
}